<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
     div{
        width: 600px;
        height: 600px;
        border:1px red solid;
        margin: 100px auto;
        /* 设置背景色 */
        /* background-color: hotpink; */
        /* 设置背景图片  默认情况 背景图是平铺  */
        background-image: url(../images/page2-img3.jpg);
     }

    </style>
</head>
<body>

    <div></div>
    
</body>
</html>